/ Assembly List / LJCNetCommon / CodeTokenizer / IsDataType

Namespace - LJCNetCommon


Parameters
text - The text value.
firstPass - The first pass for common values.

Returns

True if a data type, otherwise false.

Syntax

C#
public Boolean IsDataType(String text, Boolean firstPass = False)

Check if the text is a DataType. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " string text = \"DataValue\"";
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);

int prefixCount = 0;
string stripToken = tokenizer.StripQualifier(token, ref prefixCount);
bool isDataType = tokenizer.IsDataType(stripToken);
// Value isDataType = true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.